/*
 * main.c
 *
 *  Created on: 17 jan. 2013
 *      Author: Frank
 */

#include <stdio.h>
#include "bencode.h"

int main(int argc, char **argv) {
	if (argc > 1) {
		FILE *file = fopen(argv[1], "r");
		entry_ptr entry = parse_bencode_file(file);
		printf(to_string(entry));
	}
	else {
		printf("Gebruik:\n\t%s <bestand>\n", argv[0]);
	}
	return 0;
}



